Practical Event-Driven Microservices Architecture by Hugo Filipe Oliveira Rocha

Practical Event-Driven Microservices Architecture by Hugo Filipe Oliveira Rocha

Author:Hugo Filipe Oliveira Rocha
Language: eng
Format: epub, pdf
ISBN: 9781484274682
Publisher: Apress


This approach is the most adherent to the event-driven mindset. By removing the synchronous request, the service becomes entirely decoupled from the dependency. It becomes more resilient since it won’t be affected if the inventory read model is unavailable. Performance-wise is also better since fetching the database’s data is often faster than a remote network call. Similarly to the solution adapting event schema, the subscription service is only dependent on the upstream inventory events.

However, the subscription service must maintain and internally store all the inventory information. When there is a large amount of data, storing it will impact the infrastructure and its costs. The subscription service will also need to maintain that data up to date, which has a considerable development overhead than just requesting the inventory read model data.

This approach gives precedence to the service’s autonomy and performance. It is a useful alternative to solve this kind of challenge; however, we must avoid the pitfall of applying it blindly in every use case. Otherwise, several copies of the service’s data will spread throughout the architecture, becoming hard to manage and maintain. We discuss further the tradeoffs of using events to provide state transfer in Chapter 8.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.